<!--# include Template('header'); #-->
<!--header----main-->
<style>
#scontent{background:url(images/index_sbg.gif) repeat-x; margin:auto; padding:15px; min-height:300px;}
#searchbox{ width:400px; margin:auto}
#searchmethod { width:500px; margin:auto; padding:10px; }
#searchmethod td{height:30px; font-size:14px;}
.button{margin:10px 0 10px;padding:5px 10px;}
.sw_b1 {
background-color:#FFFFFF;
border:1px solid #B0B8BE;
}
.sw_b2 {
border:1px solid #E3E3E4;
}
.sw_b3 {
	border:1px solid #F0F0F0;
	margin-right:0.5em;
}
input.sw_qbox {
	border:1px solid white;
	color:#333333;
	font-family:arial;
	font-size:112%;
	padding:0.35em 0.4em 0.3em;
	vertical-align:middle;
	width:25.5em;
}
input.sw_qbtn {
	background-color:#549C00;
	background-image:url(images/asset3.gif);
	background-position:0pt -64px;
	border:medium none;
	cursor:pointer;
	height:24px;
	line-height:500%;
	margin:0.14em 0.2em 0.14em 0.14em;
	vertical-align:middle;
	width:24px;
}
</style>

<div id="content">
  <div id="left">
          
<h2>检索您所想要的{$very[contentName]}</h2>
<form action="search.php" method="post">
<div id="scontent">
<h3>
<input name="method" type="radio" value="1" checked="checked" onclick="showSearch(1);" />
按{$very[contentName]}查找
<input type="radio" name="method" value="2" onclick="showSearch(2);" />
按文件查找</h3>
<div id="searchbox">
	<div class=sw_b3>
		<div class=sw_b2>
			<div class=sw_b1>
			<input class="sw_qbox" id="keyword" title="搜索" name="keyword" />
			<input class="sw_qbtn" id="sb_form_go" title="搜索" tabindex=0 type=submit name=go value="" />
			</div>
		</div>
	</div>
</div>
<div id="searchmethod">
<script language="javascript" src="script/MyCalendar.js"></script>
<script language="javascript" src="script/calendar.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody id="advance_search">
  <tr>
    <td colspan="2">高级搜索条件：</td>
    </tr>
  <tr>
    <td width="110">所属目录</td>
    <td><select name="cid" id="search_cid" style="$show1">
      <option value="">所有目录</option>
      
		$cate_select
		
    </select></td>
  </tr>
  <tr id="s1" style="display:none;">
    <td>文件类型</td>
    <td><select name="type" id="search_rid">
      <option value="">全部文件</option>
      <!--# foreach($restype as $rid => $res){#-->
      <option value="$rid">$res[typename]</option>
      <!--#}#-->
    </select></td>
  </tr>
  <tr>
    <td>上传者</td>
    <td><input name="publisher" type="text" class="input" id="publisher" /></td>
  </tr>
  <tr>
    <td>上传时间</td>
    <td><input name="starttime" type="text" class="input" onclick="setNewDay(this);" size="15"> 之后 
       <input name="endtime" type="text"  class="input" onclick="setNewDay(this);" size="15"> 之前
      上传的{$very[contentName]} </td>
  </tr>
  <tr id="s2" style="display:none;">
    <td>文件大小</td>
    <td><input type="radio" name="filesize_t" value="1" />
      大于 
        <input name="filesize_t" type="radio" value="2" checked="checked" />
        小于 
        <input name="filesize" type="text" class="input" size="8" /> 
        MB</td>
  </tr>
</tbody>
</table>

</div>
<div style="text-align:center">
  <input name="advance" type="hidden" id="advance" value="1" />
  <input type="submit" name="upbtn" id="upbtn"  value="开始搜索！" class="button" /></div>

</div>
</form>
</div>
<!--# include Template('sidebar-type'); #-->
  </div>
<div class="clear"></div>
<iframe id="content-frame" name="main" width="100%" height="100%" frameborder="0" scrolling="yes" style="overflow: visible;"></iframe>
<script language="javascript">
function showSearch(v)
{
	if (v == 2)
	{
		var style = '';
	}
	else if (v == 1)
	{
		var style = 'none';
	}
	document.getElementById('s1').style.display = style;
	document.getElementById('s2').style.display = style;
}
</script>
<!---main----foot-->
<!--# include Template('foot');#-->
